<template>
  <div>
    <div class="paysuccess">
      <div class="success">
        <h3>
          <img src="./images/right.png" width="48" height="48" />
          恭喜您，支付成功啦！
        </h3>
      </div>
    </div>
    <div class="box">
      <div class="paydetail">
        <p class="button">
          <router-link class="btn-look" @click="check(1)" to="/order"
            >查看订单</router-link
          >
          <router-link class="btn-goshop" @click="check(2)" to="/"
            >回到主页</router-link
          >
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PaySuccess",
  methods: {},
};
</script>

<style>
.paysuccess {
  margin: 20px auto;
  padding: 25px;
  border: 1px solid rgb(211, 211, 211);
  width: 1200px;
  width: 1148px;
}
.paysuccess .success {
  width: 500px;
  margin: 0 auto;
}
.paysuccess .success h3 {
  /* margin: 20px 0; */
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
}
.paysuccess .success h3 img {
  max-width: 100%;
  vertical-align: middle;
  border: 0;
  margin-right: 14px;
}
.box{
  width: 500px;
  margin: 0 auto;
  height: 50px;
}
.paydetail {
  margin-left: 66px;
  font-size: 15px;
  width: 100%;
  height: 50px;
}
.paydetail .button {
  margin: 30px 0;
  line-height: 26px;
}
.paydetail .button a {
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 2px;
  user-select: none;
  font-size: 18px;
  padding: 4px 20px;
  line-height: 22px;
  text-decoration: none;
}
.paydetail .button .btn-look {
  /* margin-right: 13px; */
  color: #666;
  background-color: #eee;
  border: 1px solid #e1251b;
}

.paydetail .button .btn-goshop {
  color: #666;
  background-color: #eee;
  border: 1px solid #e1251b;
}
</style>
